package com.hhd.flow.engine.variable;

import com.alibaba.fastjson.JSONObject;
import com.hhd.flow.entity.FlowProcessInstance;

public interface FlowVariableLoaderSupport {
    default FlowVariablesContainer loadVariableContainer(String formTypeId, String formId, FlowProcessInstance processInstance) {
        return null;
    }

    default FlowVariablesContainer loadVariableContainerForDefinition(String formTypeId, String formId, FlowProcessInstance processInstance) {
        return loadVariableContainer(formTypeId, formId, processInstance);
    }

    default  FlowVariablesContainer convertJSONToFormModel(String formTypeId, FlowProcessInstance processInstance, JSONObject formModel) {
        return null;
    }
}
